<?php

namespace Database\Seeders;

use App\Models\AdminUser;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class AdminUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            'nickname'  => '管理员',
            'username'  => 'admin',
            'password'  => Hash::make('123456'),
            'role_id'   => 1,
        ];

        AdminUser::create($data);
    }
}
